package com.xxmw.transaction.service.app;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xxmw.transaction.common.entity.P;
import com.xxmw.transaction.model.brick.Brick;

import java.util.List;
import java.util.Set;

/**
 * 搬砖币种表
 */
public interface BrickService extends IService<Brick> {

    P<Brick> pageList (Integer pageNum, Integer pageSize, String symbol);

    /**
     * 获取所有已开启搬砖的交易对
     * @return
     */
    Set<String> symbolList ();

    /**
     * 根据交易对获取所有用户已开启的订阅
     * @param symbol
     * @return
     */
    List<Brick> getAvailableSymbol (String symbol);

}
